package apa.wings.gwtCRUD.shared.services;

import java.util.Date;

import apa.wings.gwtCRUD.shared.dto.PersonDTO;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

@RemoteServiceRelativePath("springGwtServices/personService")
public interface PersonService extends RemoteService {

	public PersonDTO findById(Integer id);

	public void savePerson(Integer id, String firstName, String lastName,
			Date birthDate, String sex) throws Exception;

	public void updatePerson(Integer id, String firstName, String lastName,
			Date birthDate, String sex) throws Exception;

	public void saveOrUpdatePerson(Integer id, String firstName,
			String lastName, Date birthDate, String sex) throws Exception;

	public void deletePerson(Integer id) throws Exception;

}
